package com.hhd.flow.configuration;

import com.hhd.flow.engine.FlowEngine;
import com.hhd.flow.engine.support.FlowEngineSupport;
import com.hhd.flow.support.DefaultFlowEngineSupport;
import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScans;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//@Configuration
//@MapperScan({"com.hhd.flow.install.mapper"})
public class FlowConfiguration {
    @Bean
    @ConditionalOnMissingBean(value = FlowEngineSupport.class, ignored = FlowEngine.class)
    FlowEngineSupport flowEngineSupport() {
        return new DefaultFlowEngineSupport();
    }
}
